diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-08 20:56:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-08 20:56:16 +0900 |
| commit | 5e0eda9526d512344485a4ec642775ca04c2c1af (patch) | |
| tree | 90dd49e1a9ca318816305b8e35ff812d32b91163 /src/queue/processors/http/process-inbox.ts | |
| parent | 10.83.0 (diff) | |
| download | sharkey-5e0eda9526d512344485a4ec642775ca04c2c1af.tar.gz sharkey-5e0eda9526d512344485a4ec642775ca04c2c1af.tar.bz2 sharkey-5e0eda9526d512344485a4ec642775ca04c2c1af.zip | |
Improve instances manegement
Resolve #4187
Diffstat (limited to 'src/queue/processors/http/process-inbox.ts')
| -rw-r--r-- | src/queue/processors/http/process-inbox.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/queue/processors/http/process-inbox.ts b/src/queue/processors/http/process-inbox.ts index 07d4b5ba71..43170848f9 100644 --- a/src/queue/processors/http/process-inbox.ts +++ b/src/queue/processors/http/process-inbox.ts @@ -126,7 +126,9 @@ export default async (job: bq.Job, done: any): Promise<void> => { registerOrFetchInstanceDoc(user.host).then(i => { Instance.update({ _id: i._id }, { $set: { - latestRequestReceivedAt: new Date() + latestRequestReceivedAt: new Date(), + lastCommunicatedAt: new Date(), + isNotResponding: false } }); |