Skip to content

Commit

Permalink
Turn of migrateSublayerTypeField task. Its work is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Feb 9, 2024
1 parent 3808224 commit f79dd0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ run({
crontab: `
* * * * * cleanupDataUploads
* * * * * cleanupDeletedOverlayRecords
* * * * * migrateSublayerTypeField
`,
}).then((runner) => {
runner.events.on("job:start", ({ worker, job }) => {
Expand Down
5 changes: 5 additions & 0 deletions packages/api/tasks/migrateSublayerTypeField.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { Helpers } from "graphile-worker";
import { withTimeout } from "../src/withTimeout";

/**
* @deprecated
* This task is no longer needed now that the sublayer_type field is being
* populated when layers are imported (Feb 9th, 2024).
*/
async function migrateSublayerTypeField(payload: {}, helpers: Helpers) {
await helpers.withPgClient(async (client) => {
// Get bookmark from db
Expand Down

0 comments on commit f79dd0e

Please sign in to comment.