mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Small cleanups
This commit is contained in:
parent
47729d8373
commit
d6cae5ace1
BIN
api/bun.lockb
BIN
api/bun.lockb
Binary file not shown.
@ -1,7 +0,0 @@
|
||||
import { db } from "./db";
|
||||
import { videos } from "./db/schema/videos";
|
||||
import { Video } from "./models/video";
|
||||
|
||||
const seed = async () =>{
|
||||
db.insert(videos).values(Video.examples)
|
||||
};
|
@ -1,3 +1,3 @@
|
||||
// remove indent in multi-line comments
|
||||
export const comment = (str: TemplateStringsArray) =>
|
||||
str.toString().replace(/^\s+/gm, "");
|
||||
export const comment = (str: TemplateStringsArray, ...values: any[]) =>
|
||||
str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^\s+/gm, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user