Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrazasp committed Sep 16, 2024
1 parent 9642a49 commit ec86be4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion mixins/integrations.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ export type IntegrationStats = {

export function IntegrationsMixin() {
const schema = {
actions: {},
actions: {
sync: {
rest: 'POST /sync',
handler(ctx: Context) {
ctx.call(`${this.name}.getData`);
return {
success: true,
};
},
},
},
methods: {
async makeRequestWithRetries(request: Function, retryCount: number = 1) {
async function staleFor(seconds: number) {
Expand Down
2 changes: 1 addition & 1 deletion services/integrations.infostatyba.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const addressCacheKey = 'integrations:infostatyba:addresses';
crons: [
{
name: 'integrationsInfostatyba',
cronTime: '0 10 * * *',
cronTime: '0 0 * * *',
timeZone: 'Europe/Vilnius',

async onTick() {
Expand Down

0 comments on commit ec86be4

Please sign in to comment.