updated incorrect label for data function

This commit is contained in:
Martina 2021-08-23 16:43:11 -07:00
parent ab80643e4b
commit de79a8b0c8

View File

@ -3,7 +3,7 @@ import { runQuery } from "~/node_common/data/utilities";
//NOTE(martina): remember to include an ownerId for the file
export default async ({ id }) => {
return await runQuery({
label: "CREATE_FILE",
label: "INCREMENT_FILE_SAVECOUNT",
queryFn: async (DB) => {
const query = await DB.from("files").where("id", id).increment("saveCount", 1);
@ -16,7 +16,7 @@ export default async ({ id }) => {
errorFn: async () => {
return {
error: true,
decorator: "CREATE_FILE",
decorator: "INCREMENT_FILE_SAVECOUNT",
};
},
});