Commit c77c402
committed
fix(campaigns): refactor token expiration check and fix schema issue
- Add shared isTokenExpired() function in sender-options.ts
- Modify getSenderCredentialIssue to use isTokenExpired
- Use isTokenExpired in index.ts instead of manual comparison
- Fix updateMiningSourceCredentials to use .schema('private')1 parent baf537e commit c77c402
File tree
2 files changed
+26
-20
lines changed- supabase/functions/email-campaigns
2 files changed
+26
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
662 | 663 | | |
663 | 664 | | |
664 | 665 | | |
665 | | - | |
666 | 666 | | |
| 667 | + | |
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
670 | 671 | | |
671 | 672 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | 673 | | |
677 | | - | |
| 674 | + | |
678 | 675 | | |
679 | 676 | | |
680 | 677 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 173 | + | |
| 174 | + | |
185 | 175 | | |
186 | 176 | | |
187 | 177 | | |
188 | 178 | | |
189 | | - | |
| 179 | + | |
190 | 180 | | |
191 | 181 | | |
192 | 182 | | |
| |||
195 | 185 | | |
196 | 186 | | |
197 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
0 commit comments