调整ship状态变化推送trigger

This commit is contained in:
lxy 2025-04-01 11:21:46 +08:00
parent ddd8473d73
commit 52ecc436b6
3 changed files with 4 additions and 4 deletions

View File

@ -150,7 +150,7 @@ const triggers = [
{
entity: 'ship',
name: '当ship状态发生变化时尝试向订阅者推送',
action: ['ship', 'receive', 'giveUp', 'reject'],
action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'],
when: 'after',
fn: async ({ operation }, context, option) => {
const { filter, id } = operation;

View File

@ -143,7 +143,7 @@ const triggers = [
}
}
if (needUpload) {
await (0, ship_1.uploadShippingInfo)(shipId, context);
// await (0, ship_1.uploadShippingInfo)(shipId, context);
return 1;
}
}
@ -153,7 +153,7 @@ const triggers = [
{
entity: 'ship',
name: '当ship状态发生变化时尝试向订阅者推送',
action: ['ship', 'receive', 'giveUp', 'reject'],
action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'],
when: 'after',
fn: async ({ operation }, context, option) => {
const { filter, id } = operation;

View File

@ -159,7 +159,7 @@ const triggers: Trigger<EntityDict, 'ship', BRC>[] = [
{
entity: 'ship',
name: '当ship状态发生变化时尝试向订阅者推送',
action: ['ship', 'receive', 'giveUp', 'reject'],
action: ['ship', 'receive', 'cancel', 'reject', 'unknow', 'startReceiving', 'succeedReceiving'],
when: 'after',
fn: async ({ operation }, context, option) => {
const { filter, id } = operation as EntityDict['ship']['Update'];