调整ship状态变化推送trigger
This commit is contained in:
parent
ddd8473d73
commit
52ecc436b6
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue