chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,19 @@
import { BaseService } from "./baseService.server";
import { type AuthenticatedEnvironment } from "~/services/apiAuth.server";
export class DeleteTaskRunTemplateService extends BaseService {
public async call(environment: AuthenticatedEnvironment, templateId: string) {
try {
await this._prisma.taskRunTemplate.delete({
where: {
id: templateId,
projectId: environment.projectId,
},
});
} catch (e) {
throw new Error(
`Error deleting template: ${e instanceof Error ? e.message : JSON.stringify(e)}`
);
}
}
}