Skip to content

Commit 3b47d0d

Browse files
fix(fdr): update latest pointer when getting SDK dynamic IR upload URLs (#6084)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Catherine Deskur <catherine@buildwithfern.com>
1 parent 0e14a9b commit 3b47d0d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

servers/fdr/src/controllers/api/getRegisterApiService.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ export function getRegisterApiService(app: FdrApplication): APIV1WriteService {
5050
};
5151
}
5252

53+
// Update the "latest" pointer for each language so that future requests
54+
// without a version can resolve to this version
55+
await app.services.s3.updateSdkDynamicIrLatestPointer({
56+
orgId: req.body.orgId,
57+
version: req.body.version,
58+
snippetConfiguration: req.body.snippetConfiguration
59+
});
60+
5361
app.logger.debug(`Successfully prepared dynamic IR upload URLs for SDK generation`);
5462
return res.send({
5563
uploadUrls: dynamicIrUploads

0 commit comments

Comments
 (0)