forked from EduCraft/curriculum-project-hub
fix(hub): busy 表情从 Hourglass 改为 OnIt(飞书支持的 emoji_type)
This commit is contained in:
@@ -156,7 +156,7 @@ export function makeTriggerHandler(deps: TriggerDeps) {
|
|||||||
// ADR-0002: if locked by another run, reply busy.
|
// ADR-0002: if locked by another run, reply busy.
|
||||||
const existing = await currentLockRunId(deps.prisma, projectId);
|
const existing = await currentLockRunId(deps.prisma, projectId);
|
||||||
if (existing !== null) {
|
if (existing !== null) {
|
||||||
await reactToMessage(rt, msg.message_id, "Hourglass");
|
await reactToMessage(rt, msg.message_id, "OnIt");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ export function makeTriggerHandler(deps: TriggerDeps) {
|
|||||||
data: { status: "FAILED", error: "lock race", finishedAt: new Date() },
|
data: { status: "FAILED", error: "lock race", finishedAt: new Date() },
|
||||||
});
|
});
|
||||||
await writeAudit(deps.prisma, { runId: run.id, projectId, action: "run.lock_race", metadata: {} });
|
await writeAudit(deps.prisma, { runId: run.id, projectId, action: "run.lock_race", metadata: {} });
|
||||||
await reactToMessage(rt, msg.message_id, "Hourglass");
|
await reactToMessage(rt, msg.message_id, "OnIt");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user