A decentralized music tracking and discovery platform built on AT Protocol 🎵

[api] omit createdAt and updatedAt

+10 -2
+5 -1
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
··· 6 6 import { Server } from "lexicon"; 7 7 import { QueryParams } from "lexicon/types/app/rocksky/dropbox/getFiles"; 8 8 import _ from "lodash"; 9 + import * as R from "ramda"; 9 10 import tables from "schema"; 10 11 11 12 export default function (server: Server, ctx: Context) { ··· 112 113 113 114 const presentation = (data) => { 114 115 return Effect.sync(() => ({ 115 - parentDirectory: _.get(data, "0.0.parent", null), 116 + parentDirectory: R.omit( 117 + ["createdAt", "updatedAt"], 118 + _.get(data, "0.0.parent", null) 119 + ), 116 120 directories: data[0].map((item) => ({ 117 121 id: item.dropbox_directories.id, 118 122 name: item.dropbox_directories.name,
+5 -1
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
··· 5 5 import { Server } from "lexicon"; 6 6 import { QueryParams } from "lexicon/types/app/rocksky/googledrive/getFiles"; 7 7 import _ from "lodash"; 8 + import * as R from "ramda"; 8 9 import tables from "schema"; 9 10 10 11 export default function (server: Server, ctx: Context) { ··· 123 124 124 125 const presentation = (data) => { 125 126 return Effect.sync(() => ({ 126 - parentDirectory: _.get(data, "0.0.parent", null), 127 + parentDirectory: R.omit( 128 + ["createdAt", "updatedAt"], 129 + _.get(data, "0.0.parent", null) 130 + ), 127 131 directories: data[0].map((item) => ({ 128 132 id: item.google_drive_directories.id, 129 133 name: item.google_drive_directories.name,