mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 13:49:43 +02:00
Some checks are pending
Build and push Docker DEV image / build ([self-hosted arm64], linux/arm/v7) (push) Waiting to run
Build and push Docker DEV image / build ([self-hosted arm64], linux/arm64) (push) Waiting to run
Build and push Docker DEV image / build ([self-hosted x64], linux/amd64) (push) Waiting to run
Build and push Docker DEV image / merge (push) Blocked by required conditions
Build and push Docker DEV image / rerun-failed-jobs (push) Blocked by required conditions
Closes #693
20 lines
360 B
JavaScript
20 lines
360 B
JavaScript
module.exports = {
|
|
async fn() {
|
|
const { accessToken } = this.req;
|
|
|
|
await Session.updateOne({
|
|
accessToken,
|
|
deletedAt: null,
|
|
}).set({
|
|
deletedAt: new Date().toISOString(),
|
|
});
|
|
|
|
if (this.req.isSocket) {
|
|
sails.sockets.leaveAll(`@accessToken:${accessToken}`);
|
|
}
|
|
|
|
return {
|
|
item: accessToken,
|
|
};
|
|
},
|
|
};
|