fix: no refresh - set error

This commit is contained in:
Nevo David 2026-01-05 22:17:51 +07:00
parent fc349942b5
commit ead98cb41f
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,7 @@ export async function postWorkflow({
) {
const refresh = await refreshToken(post.integration);
if (!refresh || !refresh.accessToken) {
await changeState(postsList[0].id, 'ERROR', err, postsList);
return false;
}
@ -287,6 +288,7 @@ export async function postWorkflow({
) {
const refresh = await refreshToken(post.integration);
if (!refresh || !refresh.accessToken) {
await changeState(postsList[0].id, 'ERROR', err, postsList);
return false;
}
@ -329,6 +331,7 @@ export async function postWorkflow({
) {
const refresh = await refreshToken(post.integration);
if (!refresh || !refresh.accessToken) {
await changeState(postsList[0].id, 'ERROR', err, postsList);
return false;
}